package com.zhuss.team.informationSon;

import com.zhuss.bean.bo.team.information.SearchInfoSonBo;
import com.zhuss.common.ReadService;
import com.zhuss.exception.WpsException;
import com.zhuss.team.processor.InformationSonRead;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * @Author: zhushanshuo
 * @Date: 2020/3/3 14:25
 */
@Component("informationSonReadService")
public class InformationSonReadService implements ReadService<Object,Object> {

    @Autowired
    @Qualifier("informationSonRead")
    private InformationSonRead informationSonRead;

    @Override
    public Object detail(Object o) throws WpsException {
        return null;
    }

    @Override
    public Object list(Object o) throws WpsException {
        return null;
    }

    /**
     * 获取信息待阅列表
     * @throws WpsException
     */
    public Object stayList(Object o) throws WpsException {
        SearchInfoSonBo bo = (SearchInfoSonBo) o;
        Object result = informationSonRead.stayList(bo);
        return result;
    }

    /**
     * 获取信息已阅列表
     * @throws WpsException
     */
    public Object alreadyList(Object o) throws WpsException {
        SearchInfoSonBo bo = (SearchInfoSonBo) o;
        Object result = informationSonRead.alreadyList(bo);
        return result;
    }
}
